package hypeerweb;

public class SurrogateFold extends StandardNodeRole {

	public SurrogateFold(int id)
	{
		super(id);
	}

	public SurrogateFold(int id, int height) {
		super(id, height);
	}

	@Override
	public void AddMe(Node node) {
		Connections connections = delegate.getConnections();
		connections.setInverseSurrogateFold(node);
	}

	@Override
	public void ReplaceMe(Node node) {
		Connections connections = delegate.getConnections();
		connections.updateInverseSurrogateFold(node);
	}

	@Override
	public void DeleteMe(Node node) {
		//this should not be called
		/*
		Connections connections = delegate.getConnections();
		connections.setInverseSurrogateFold(Node.NULL_NODE);
		*/
	}

}
